<?php
/**
 * Created by PhpStorm.
 * User: zouhua
 * Date: 2017/5/5
 * Time: 15:43
 */

namespace app\components;


use yii\base\Action;
use yii\base\Event;
use yii\db\ActiveQuery;

class UserListEvent extends Event {

    /**
     * @var Action the action currently being executed
     */
    public $action;

    /**
     * @var ActiveQuery
     */
    public $query;

    /**
     * Constructor.
     * @param Action $action the action associated with this action event.
     * @param array $config name-value pairs that will be used to initialize the object properties
     */
    public function __construct($action, $config = []) {
        $this->action = $action;
        parent::__construct($config);
    }
}